import { http } from "../utils/http";

/** 获取贴标任务列表 */
export const getDecalPage = params => {
  return http.request("get", "/v1/get_decal_page", { params });
};

/** 创建贴标任务 */
export const createDecalTask = data => {
  return http.request("post", "/v1/create_decal_task", { data });
};

/** 贴标更改进行中状态 */
export const changeStatus = data => {
  return http.request("post", "/v1/decal_task_in_progress", { data });
};

/** 添加贴标任务规划时间 */
export const addDecalTaskPlanningTime = data => {
  return http.request("post", "/v1/add_decal_task_planning_time", { data });
};

/** 添加贴标任务规划时间 */
export const completeDecalTask = data => {
  return http.request("post", "/v1/complete_decal_task", { data });
};

/** 获取货物列表 提柜，中转，退件 */
export const getCargoPage = params => {
  return http.request("get", "/v1/get_cargo_page", { params });
};

/** 提柜，中转，退件更改进行中状态 */
export const checkinTaskInProgress = data => {
  return http.request("post", "/v1/checkin_task_in_progress", { data });
};

/** 完成提柜，中转，退件等入库任务 */
export const completeCheckinTask = data => {
  return http.request("post", "/v1/complete_checkin_task", { data });
};

/** 添加入库清单任务规划时间 */
export const addCheckinTaskPlanningTime = data => {
  return http.request("post", "/v1/add_checkin_task_planning_time", { data });
};

/** 一件代发更改进行中状态 */
export const dropshippingTaskInProgress = data => {
  return http.request("post", "/v1/dropshipping_task_in_progress", { data });
};

/** 创建一件代发任务 */
export const createDropshippingTask = data => {
  return http.request("post", "/v1/create_dropshipping_task", { data });
};

/** 完成一件代发任务 */
export const completeDropshippingTask = data => {
  return http.request("post", "/v1/complete_dropshipping_task", { data });
};

/** 添加一件代发任务规划时间 */
export const addDropshippingTaskPlanningTime = data => {
  return http.request("post", "/v1/add_dropshipping_task_planning_time", {
    data
  });
};

/** 获取一件代发任务列表 */
export const getDropshippingPage = params => {
  return http.request("get", "/v1/get_dropshipping_page", {
    params
  });
};
